#include<bits/stdc++.h>
using namespace std;

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
	ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int n, x; cin >> n >> x;
	vector<int> a(n, 0);
	for(auto & i : a) cin >> i;
	int cnt = 0;
	for(auto i : a)if(i<=x)cnt+=i;
	cout << cnt << endl;
	return 0;
}